package io.github.wanggit.antrpc.gateway;

import io.github.wanggit.antrpc.gateway.configuration.GatewayProperties;
import io.github.wanggit.antrpc.gateway.starter.ApplicationContextInitializedEventListener;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;

@EnableConfigurationProperties(GatewayProperties.class)
@SpringBootApplication
public class GatewayApplication {

    public static void main(String[] args) {
        SpringApplication springApplication = new SpringApplication(GatewayApplication.class);
        springApplication.addListeners(new ApplicationContextInitializedEventListener());
        springApplication.run(args);
    }
}
